<?php

/**
 * Banda form.
 *
 * @package    blackDrums
 * @subpackage form
 * @author     Castellano, Fermin, Florenca
 */
class BandaForm extends BaseBandaForm {
    public function configure() {
        $this->widgetSchema->setLabels(array(
                'ban_cli_list'    => 'Integrantes',
        ));

        $this->setValidators(array(
                'idBanda'      => new sfValidatorPropelChoice(array('model' => 'Banda', 'column' => 'idBanda', 'required' => false)),
                'nombre'        => new sfValidatorString(array('max_length' => 50),array ('required' => 'Por favor indique el nombre de la banda')),
                'saldo'        => new sfValidatorNumber(array('min' => -2147483648, 'max' => 2147483647),array ('required' => 'Por favor indique su saldo')),
        ));
    }
}
